package com.aaron.test;

import java.util.Arrays;
import java.util.stream.Collectors;

public class T1 {

    private static class   Txx{
        public static void main(String[] args) {
            System.out.println("xxx");
        }
    }


    public static void main(String[] args) {
        String addr = "/奉贤区";
        String reserved = "奉贤区";
        int firstIndex = addr.indexOf(reserved);
        System.out.println();


        String s2 = "撒旦法名人公馆发生大幅";
//        if (s2.contains("名人公馆")) {
//            s2 = s2.replace("名人公馆", "****");
//            System.out.println();
//
//        }



        String special = "名人公馆";

        String replace = s2.replace(special, Arrays.stream(special.split("")).map(t->"*").collect(Collectors.joining()));
        System.out.println(replace);

    }


}
